<?php

namespace Payload;
use Any0neSec\Any0ne;

class PayloadLoader
{

    public static function getPayload($framework, $version, $command){
        if(file_exists(__dir__."/".$framework)){
            require_once __dir__."/${framework}/${framework}_${version}.php";
            $any0ne = new Any0ne();
            return $any0ne->getPayload($command);
        }else{
            throw new \Exception("This framework is not support.");
        }
    }

}

